{template 'tpl_header'}

<div class="weui-cells" style="margin-top: 0;">
    <a class="weui-cell">
        <div class="weui-cell__bd">
            <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
        </div>
        <div class="weui-cell__ft">
            {$member['nick_name']}
        </div>
    </a>
    <a onclick="edit('real_name');" class="weui-cell weui-cell_access">
        <div class="weui-cell__hd">真实姓名</div>
        <div class="weui-cell__bd">
        </div>
        <div class="weui-cell__ft">
            {$member['real_name']}
        </div>
    </a>
    <a onclick="edit('mobile');" class="weui-cell weui-cell_access">
        <div class="weui-cell__hd"><label class="weui-label">手机</label></div>
        <div class="weui-cell__bd">
        </div>
        <div class="weui-cell__ft">
            {$member['mobile']}
        </div>
    </a>
    <a onclick="edit('email');" class="weui-cell weui-cell_access">
        <div class="weui-cell__hd">邮箱</div>
        <div class="weui-cell__bd">
        </div>
        <div class="weui-cell__ft">
            {$member['email']}
        </div>
    </a>
    <!--<a href="member_edit.html" class="weui-cell weui-cell_access">
        <div class="weui-cell__bd">
            <div class="weui-cell__hd"><label class="weui-label">修改密码</label></div>
        </div>
        <div class="weui-cell__ft">
        </div>
    </a>-->
</div>

{template 'tpl_footer'}
<script>
    function edit(type) {
        var url = '';
        if (type == 'mobile') url = "{php echo url('entry', array('m' => 'vj_bontrip','do' => 'me','op' => 'mobile_edit'),true); }";
        if (type == 'email') url = "{php echo url('entry', array('m' => 'vj_bontrip','do' => 'me','op' => 'email_edit'),true); }";
        if (type == 'real_name') url = "{php echo url('entry', array('m' => 'vj_bontrip','do' => 'me','op' => 'real_name_edit'),true); }";
        window.location.replace(url);
    }
</script>